// 引用
import Vue from "vue";
import Vuex from "vuex";
// 使用
Vue.use(Vuex);

import home from "./Home";
import search from "./Search/index.js";
import detail from "./Detail/index.js";
import shopcart from "./ShopCart/index.js";
import register from "./Register/index.js"; 

// 创建导出
export default new Vuex.Store({
  modules: {
    home,
    search,
    detail,
    shopcart,
    register,
  },
});